home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / red_cross_eru.swf / scripts / __Packages / gamebase / need / NeedControl.as next >
Text File  |  2011-09-19  |  11KB  |  354 lines

  1. §§push(true);
  2. §§push(false);
  3. §§push(false);
  4. §§push(true);
  5. while(true)
  6. {
  7.    if(┬º┬ºpop())
  8.    {
  9.    }
  10.    if(┬º┬ºpop())
  11.    {
  12.    }
  13.    if(┬º┬ºpop())
  14.    {
  15.       break;
  16.    }
  17.    ┬º┬ºpush(true);
  18.    ┬º┬ºpush(false);
  19. }
  20. if(!e.f)
  21. {
  22.    e.f = new g();
  23. }
  24. §§pop();
  25. if(!e.f.h)
  26. {
  27.    e.f.h = new g();
  28. }
  29. §§pop();
  30. if(!e.f.h[§§constant(4)])
  31. {
  32.    f.h[┬º┬ºconstant(4)] extends f[┬º┬ºconstant(7)];
  33.    var _loc2_ = f.h[┬º┬ºconstant(4)] = function()
  34.    {
  35.       super();
  36.       _global[┬º┬ºconstant(5)] = this;
  37.       this[┬º┬ºconstant(6)]();
  38.    }[┬º┬ºconstant(8)];
  39.    _loc2_[┬º┬ºconstant(6)] = function()
  40.    {
  41.       this[┬º┬ºconstant(9)] = _global[┬º┬ºconstant(10)][┬º┬ºconstant(9)];
  42.       this[┬º┬ºconstant(11)] = _global[┬º┬ºconstant(10)][┬º┬ºconstant(12)];
  43.       this[┬º┬ºconstant(13)] = _global[┬º┬ºconstant(10)][┬º┬ºconstant(14)][┬º┬ºconstant(15)]();
  44.       this[┬º┬ºconstant(16)] = _global[┬º┬ºconstant(10)][┬º┬ºconstant(16)][┬º┬ºconstant(15)]();
  45.       this[┬º┬ºconstant(17)] = new ┬º\┬º\┬ºconstant(18)┬º();
  46.       this[┬º┬ºconstant(19)]();
  47.       this[┬º┬ºconstant(20)] = 1000;
  48.       this[┬º┬ºconstant(21)] = 0;
  49.    };
  50.    _loc2_[┬º┬ºconstant(19)] = function()
  51.    {
  52.       var _loc6_ = this[┬º┬ºconstant(9)];
  53.       var _loc5_ = this[┬º┬ºconstant(13)][┬º┬ºconstant(22)];
  54.       var _loc3_ = 0;
  55.       while(_loc3_ < _loc5_)
  56.       {
  57.          var _loc4_ = this[┬º┬ºconstant(13)][_loc3_];
  58.          _loc4_[┬º┬ºconstant(23)] = _loc3_ + 1;
  59.          _loc3_ = _loc3_ + 1;
  60.       }
  61.       this[┬º┬ºconstant(14)] = new ┬º\┬º\┬ºconstant(18)┬º();
  62.       this[┬º┬ºconstant(14)] = this[┬º┬ºconstant(14)][┬º┬ºconstant(24)](this[┬º┬ºconstant(13)]);
  63.       delete this[┬º┬ºconstant(13)];
  64.       if(this[┬º┬ºconstant(14)][┬º┬ºconstant(22)] == 0)
  65.       {
  66.          _global[┬º┬ºconstant(26)][┬º┬ºconstant(27)](100,┬º┬ºconstant(25));
  67.          f[┬º┬ºconstant(30)][┬º┬ºconstant(31)][┬º┬ºconstant(32)](_global[┬º┬ºconstant(28)],_global[┬º┬ºconstant(28)][┬º┬ºconstant(29)],200);
  68.          return undefined;
  69.       }
  70.       this[┬º┬ºconstant(33)] = 0;
  71.       this[┬º┬ºconstant(34)]();
  72.    };
  73.    _loc2_[┬º┬ºconstant(34)] = function()
  74.    {
  75.       var _loc2_ = this[┬º┬ºconstant(14)][this[┬º┬ºconstant(33)]];
  76.       _loc2_[┬º┬ºconstant(35)] = ┬º┬ºconstant(36);
  77.       f[┬º┬ºconstant(37)][┬º┬ºconstant(38)][┬º┬ºconstant(39)](_loc2_);
  78.    };
  79.    _loc2_[┬º┬ºconstant(40)] = function()
  80.    {
  81.       var _loc3_ = this[┬º┬ºconstant(14)][┬º┬ºconstant(22)] - 1;
  82.       var _loc4_ = 25 + eval(┬º┬ºconstant(41))[┬º┬ºconstant(42)](25 * this[┬º┬ºconstant(33)] / _loc3_);
  83.       _global[┬º┬ºconstant(26)][┬º┬ºconstant(27)](_loc4_,┬º┬ºconstant(25));
  84.       if(this[┬º┬ºconstant(33)] == _loc3_)
  85.       {
  86.          this[┬º┬ºconstant(33)] = 0;
  87.          _global[┬º┬ºconstant(43)][┬º┬ºconstant(44)]();
  88.          f[┬º┬ºconstant(30)][┬º┬ºconstant(31)][┬º┬ºconstant(32)](_global[┬º┬ºconstant(45)],_global[┬º┬ºconstant(45)][┬º┬ºconstant(46)],200);
  89.       }
  90.       else
  91.       {
  92.          this[┬º┬ºconstant(33)] = this[┬º┬ºconstant(33)] + 1;
  93.          f[┬º┬ºconstant(30)][┬º┬ºconstant(31)][┬º┬ºconstant(32)](this,this[┬º┬ºconstant(34)],10);
  94.       }
  95.    };
  96.    _loc2_[┬º┬ºconstant(47)] = function()
  97.    {
  98.       this[┬º┬ºconstant(48)] += 40;
  99.       if(this[┬º┬ºconstant(49)])
  100.       {
  101.          if(this[┬º┬ºconstant(48)] > this[┬º┬ºconstant(49)])
  102.          {
  103.             this[┬º┬ºconstant(50)]();
  104.          }
  105.       }
  106.       var _loc2_ = 0;
  107.       while(_loc2_ < this[┬º┬ºconstant(17)][┬º┬ºconstant(22)])
  108.       {
  109.          this[┬º┬ºconstant(17)][_loc2_][┬º┬ºconstant(47)]();
  110.          _loc2_ = _loc2_ + 1;
  111.       }
  112.    };
  113.    _loc2_[┬º┬ºconstant(51)] = function()
  114.    {
  115.       if(this[┬º┬ºconstant(16)][0][┬º┬ºconstant(35)] == ┬º┬ºconstant(52))
  116.       {
  117.          var _loc6_ = this[┬º┬ºconstant(16)][┬º┬ºconstant(53)]();
  118.          var _loc4_ = 0;
  119.          while(_loc4_ < _loc6_[┬º┬ºconstant(54)])
  120.          {
  121.             var _loc5_ = f[┬º┬ºconstant(30)][┬º┬ºconstant(56)][┬º┬ºconstant(57)](_loc6_[┬º┬ºconstant(55)]);
  122.             var _loc3_ = this[┬º┬ºconstant(58)](_loc5_);
  123.             _loc3_[┬º┬ºconstant(59)] = true;
  124.             _loc3_[┬º┬ºconstant(60)](┬º┬ºconstant(52));
  125.             _loc4_ = _loc4_ + 1;
  126.          }
  127.       }
  128.       if(_global[┬º┬ºconstant(28)][┬º┬ºconstant(61)] > 1)
  129.       {
  130.          this[┬º┬ºconstant(16)] = f[┬º┬ºconstant(30)][┬º┬ºconstant(56)][┬º┬ºconstant(62)](this[┬º┬ºconstant(16)]);
  131.       }
  132.    };
  133.    _loc2_[┬º┬ºconstant(50)] = function()
  134.    {
  135.       this[┬º┬ºconstant(48)] = 0;
  136.       this[┬º┬ºconstant(49)] = f[┬º┬ºconstant(30)][┬º┬ºconstant(64)][┬º┬ºconstant(65)](this[┬º┬ºconstant(11)] / 4,50,┬º┬ºconstant(63));
  137.       if(this[┬º┬ºconstant(16)][┬º┬ºconstant(22)] == 0)
  138.       {
  139.          this[┬º┬ºconstant(49)] = undefined;
  140.          return undefined;
  141.       }
  142.       var _loc3_ = this[┬º┬ºconstant(66)]();
  143.       if(_loc3_ == 2)
  144.       {
  145.          this[┬º┬ºconstant(49)] *= 3;
  146.       }
  147.       else if(_loc3_ == 3)
  148.       {
  149.          this[┬º┬ºconstant(49)] *= 6;
  150.       }
  151.       else if(_loc3_ >= 4)
  152.       {
  153.          this[┬º┬ºconstant(49)] *= 10;
  154.       }
  155.       var _loc4_ = undefined;
  156.       if(_global[┬º┬ºconstant(28)][┬º┬ºconstant(61)] == 1)
  157.       {
  158.          _loc4_ = this[┬º┬ºconstant(16)][┬º┬ºconstant(53)]();
  159.          if(this[┬º┬ºconstant(21)] < 5)
  160.          {
  161.             this[┬º┬ºconstant(21)] = this[┬º┬ºconstant(21)] + 1;
  162.             var _loc5_ = true;
  163.             if(this[┬º┬ºconstant(21)] == 5)
  164.             {
  165.                if(!_global[┬º┬ºconstant(68)][┬º┬ºconstant(69)](┬º┬ºconstant(67)))
  166.                {
  167.                   _loc5_ = false;
  168.                }
  169.             }
  170.             if(_loc5_)
  171.             {
  172.                var _loc7_ = ┬º┬ºconstant(70) + this[┬º┬ºconstant(21)];
  173.                f[┬º┬ºconstant(37)][┬º┬ºconstant(38)][┬º┬ºconstant(72)](_global[_loc7_],false,┬º┬ºconstant(71));
  174.             }
  175.          }
  176.       }
  177.       else
  178.       {
  179.          _loc4_ = f[┬º┬ºconstant(30)][┬º┬ºconstant(56)][┬º┬ºconstant(57)](this[┬º┬ºconstant(16)]);
  180.       }
  181.       var _loc6_ = this[┬º┬ºconstant(73)](_loc4_[┬º┬ºconstant(55)]);
  182.       if(_loc6_[┬º┬ºconstant(22)] > 0)
  183.       {
  184.          var _loc8_ = f[┬º┬ºconstant(30)][┬º┬ºconstant(56)][┬º┬ºconstant(74)](_loc6_);
  185.          _loc8_[┬º┬ºconstant(60)](_loc4_[┬º┬ºconstant(35)]);
  186.          _global[┬º┬ºconstant(75)][┬º┬ºconstant(76)]();
  187.       }
  188.    };
  189.    _loc2_[┬º┬ºconstant(73)] = function(groupIds)
  190.    {
  191.       var _loc4_ = new ┬º\┬º\┬ºconstant(18)┬º();
  192.       var _loc5_ = groupIds[┬º┬ºconstant(22)];
  193.       var _loc2_ = 0;
  194.       while(_loc2_ < _loc5_)
  195.       {
  196.          var _loc3_ = this[┬º┬ºconstant(58)](groupIds[_loc2_]);
  197.          if(!_loc3_[┬º┬ºconstant(77)])
  198.          {
  199.             _loc4_[┬º┬ºconstant(78)](_loc3_);
  200.          }
  201.          _loc2_ = _loc2_ + 1;
  202.       }
  203.       return _loc4_;
  204.    };
  205.    _loc2_[┬º┬ºconstant(79)] = function(obj)
  206.    {
  207.       var _loc2_ = this[┬º┬ºconstant(58)](obj[┬º┬ºconstant(80)]);
  208.       if(_loc2_ == undefined)
  209.       {
  210.          _loc2_ = new f.h[┬º┬ºconstant(81)](obj[┬º┬ºconstant(80)]);
  211.          this[┬º┬ºconstant(17)][┬º┬ºconstant(78)](_loc2_);
  212.       }
  213.       _loc2_[┬º┬ºconstant(82)](obj);
  214.    };
  215.    _loc2_[┬º┬ºconstant(58)] = function(groupId)
  216.    {
  217.       var _loc4_ = this[┬º┬ºconstant(17)][┬º┬ºconstant(22)];
  218.       var _loc2_ = 0;
  219.       while(_loc2_ < _loc4_)
  220.       {
  221.          var _loc3_ = this[┬º┬ºconstant(17)][_loc2_];
  222.          if(_loc3_[┬º┬ºconstant(80)] == groupId)
  223.          {
  224.             return _loc3_;
  225.          }
  226.          _loc2_ = _loc2_ + 1;
  227.       }
  228.       return undefined;
  229.    };
  230.    _loc2_[┬º┬ºconstant(83)] = function(ng)
  231.    {
  232.       var _loc3_ = this[┬º┬ºconstant(17)][┬º┬ºconstant(22)];
  233.       var _loc2_ = 0;
  234.       while(_loc2_ < _loc3_)
  235.       {
  236.          if(this[┬º┬ºconstant(17)][_loc2_] == ng)
  237.          {
  238.             this[┬º┬ºconstant(17)][┬º┬ºconstant(84)](_loc2_,1);
  239.             break;
  240.          }
  241.          _loc2_ = _loc2_ + 1;
  242.       }
  243.    };
  244.    _loc2_[┬º┬ºconstant(85)] = function()
  245.    {
  246.       if(this[┬º┬ºconstant(16)][┬º┬ºconstant(22)] > 0)
  247.       {
  248.          return true;
  249.       }
  250.       if(this[┬º┬ºconstant(66)]() > 0)
  251.       {
  252.          return true;
  253.       }
  254.       return false;
  255.    };
  256.    _loc2_[┬º┬ºconstant(66)] = function()
  257.    {
  258.       var _loc4_ = 0;
  259.       var _loc5_ = this[┬º┬ºconstant(17)][┬º┬ºconstant(22)];
  260.       var _loc2_ = 0;
  261.       while(_loc2_ < _loc5_)
  262.       {
  263.          var _loc3_ = this[┬º┬ºconstant(17)][_loc2_];
  264.          if(_loc3_[┬º┬ºconstant(86)])
  265.          {
  266.             _loc4_ = _loc4_ + 1;
  267.          }
  268.          _loc2_ = _loc2_ + 1;
  269.       }
  270.       return _loc4_;
  271.    };
  272.    _loc2_[┬º┬ºconstant(87)] = function()
  273.    {
  274.       var _loc4_ = this[┬º┬ºconstant(16)][┬º┬ºconstant(22)];
  275.       var _loc5_ = this[┬º┬ºconstant(17)][┬º┬ºconstant(22)];
  276.       var _loc2_ = 0;
  277.       while(_loc2_ < _loc5_)
  278.       {
  279.          var _loc3_ = this[┬º┬ºconstant(17)][_loc2_];
  280.          _loc4_ += _loc3_[┬º┬ºconstant(88)][┬º┬ºconstant(22)];
  281.          _loc2_ = _loc2_ + 1;
  282.       }
  283.       return _loc4_;
  284.    };
  285.    _loc2_[┬º┬ºconstant(89)] = function(nd)
  286.    {
  287.       var _loc4_ = 0;
  288.       var _loc5_ = this[┬º┬ºconstant(17)][┬º┬ºconstant(22)];
  289.       var _loc2_ = 0;
  290.       while(_loc2_ < _loc5_)
  291.       {
  292.          var _loc3_ = this[┬º┬ºconstant(17)][_loc2_];
  293.          if(_loc3_[┬º┬ºconstant(90)][┬º┬ºconstant(91)] == nd)
  294.          {
  295.             _loc4_ = _loc4_ + 1;
  296.          }
  297.          _loc2_ = _loc2_ + 1;
  298.       }
  299.       return _loc4_;
  300.    };
  301.    _loc2_[┬º┬ºconstant(92)] = function()
  302.    {
  303.       if(_global[┬º┬ºconstant(28)][┬º┬ºconstant(61)] == 0)
  304.       {
  305.          return undefined;
  306.       }
  307.       if(_global[┬º┬ºconstant(93)] == undefined)
  308.       {
  309.          return undefined;
  310.       }
  311.       _global[┬º┬ºconstant(43)][┬º┬ºconstant(44)]();
  312.       var _loc4_ = this[┬º┬ºconstant(87)]() > 0;
  313.       if(!_loc4_)
  314.       {
  315.          _global[┬º┬ºconstant(37)][┬º┬ºconstant(94)] = true;
  316.          return undefined;
  317.       }
  318.       var _loc3_ = this[┬º┬ºconstant(66)]();
  319.       if(_loc3_ == 0)
  320.       {
  321.          this[┬º┬ºconstant(50)]();
  322.       }
  323.    };
  324.    _loc2_[┬º┬ºconstant(95)] = function(camp, excludeGroup)
  325.    {
  326.       var _loc4_ = this[┬º┬ºconstant(17)][┬º┬ºconstant(22)];
  327.       var _loc3_ = 0;
  328.       while(_loc3_ < _loc4_)
  329.       {
  330.          var _loc2_ = this[┬º┬ºconstant(17)][_loc3_];
  331.          if(_loc2_ != excludeGroup)
  332.          {
  333.             if(_loc2_[┬º┬ºconstant(90)] != undefined)
  334.             {
  335.                if(!_loc2_[┬º┬ºconstant(96)])
  336.                {
  337.                   if(!_loc2_[┬º┬ºconstant(97)])
  338.                   {
  339.                      if(_loc2_[┬º┬ºconstant(90)][┬º┬ºconstant(98)](camp))
  340.                      {
  341.                         return _loc2_;
  342.                      }
  343.                   }
  344.                }
  345.             }
  346.          }
  347.          _loc3_ = _loc3_ + 1;
  348.       }
  349.       return null;
  350.    };
  351.    ┬º┬ºpush(┬º┬ºconstant(99)(f.h[┬º┬ºconstant(4)][┬º┬ºconstant(8)],null,1));
  352. }
  353. §§pop();
  354.